package com.rjpacket.supernews.app.fragments;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;
import com.rjpacket.supernews.app.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class DiscoverFragment extends Fragment {


    public DiscoverFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View ret = inflater.inflate(R.layout.fragment_discover, container, false);

        ImageView imageView = (ImageView) ret.findViewById(R.id.discover_top);

        Animation animation = AnimationUtils.loadAnimation(getActivity(), R.anim.rotate_discover_top);

        imageView.setAnimation(animation);

        animation.start();

        return ret;
    }


}
